﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Abp.Dependency;
using Xugege.AbpExtension;

namespace Xugege.AbpExtension.Core.Extension.File
{
    public class AppFolderExtension : IAppFolderExtension, ISingletonDependency
    {
        public string FileUploadPath { get; set; }
        public string WebRootPath { get; set; }
        public string GetRelativePath(string path)
        {
            return path.Replace(this.WebRootPath, "").Replace(@"\", @"/");
        }
    }
}
